package net.webservice.entity;

import javax.xml.bind.annotation.*;

@XmlRootElement(name= "message")
@XmlAccessorType(XmlAccessType.NONE)
@XmlType(name="MessageType",propOrder = {"id","name"})

public final class Message {
    @XmlElement(name = "id")
    private int id;

    @XmlElement(name="name")
    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Message(){
        this.id = 0;
        this.name = "";
    }

}

